import logging

# debug，info，warning，error
logging.basicConfig(level=logging.INFO)


def foo(s):
    n = int(s)
    assert n != 0, 'n is zero'
    return 10 / n


def foo2(s):
    n = int(s)
    logging.info('n = %d' % n)
    print(10 / n)


foo2(0)
